package com.roc.template.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class DCAutoTask {

    Logger logger = LoggerFactory.getLogger(DCAutoTask.class);

    @Scheduled(cron = "0 0 0 * * ?")
    public void clearDir() {
        logger.info("定时任务测试");
    }
}

